FROM alpine:3.12
ENV LANG=C.UTF-8
ENV TZ=Asia/Shanghai
RUN echo "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.12/main/" > /etc/apk/repositories
RUN apk add --no-cache tzdata bash curl socat && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone \
    && apk del tzdata

COPY zoneinfo.zip /
ENV ZONEINFO /zoneinfo.zip
COPY cdc /cdc
COPY ticdc_start_script.sh /
COPY entrypoint.sh /
EXPOSE 8300
CMD [ "/entrypoint.sh" ]
